package com.k12.admim.service;


import com.k12.admim.model.dto.RegUserDTO;
import com.k12.admim.model.entity.sys.SysUser;
import com.k12.admim.model.entity.sys.SysUserRole;
import com.k12.admim.model.vo.sys.RegUserVo;
import com.k12.admim.model.vo.sys.SysDeptVo;
import com.k12.admim.model.vo.sys.SysUserVo;
import com.k12.common.model.resp.R;

import java.util.List;

public interface OperatorUserService {
    List<SysDeptVo> selectDeptTree(SysUserVo sysUserVo);

    R register(RegUserVo regUserVo);

    List<SysUser> checkUser(String tenantId, Long userId);

    RegUserDTO getUser(Long userId, String tenantId);

    R updateUser(RegUserVo regUserVo);

    void deleteByIds(Long[] userIds, String tenantId);

    void resetPwd(RegUserVo regUserVo);

    void insertUserAuth(Long userId, Long[] roleIds,String tenantId);

    List<SysUser> unallocatedList(SysUserVo user);

    int deleteAuthUser(SysUserRole userRole);

    int deleteAuthUsers(Long roleId, Long[] userIds);
}
